package org.example.repository;

import org.example.entity.GameRecord;
import org.springframework.data.jpa.repository.JpaRepository;

import java.util.Optional;
import java.util.List;

public interface GameRecordRepository extends JpaRepository<GameRecord, Long> {
    Optional<GameRecord> findTopByUsernameOrderByIdDesc(String username);
    List<GameRecord> findByUsername(String username);
}